package com.lsk.netdisk.commons.authz.interceptor;

import com.lsk.netdisk.common.redis.core.RedisComponent;
import com.lsk.netdisk.commons.authz.aspect.annotation.InjectRedis;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Slf4j
public class GatewayInterceptor extends HandlerInterceptorAdapter {
	@Override
	public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
		log.info(handler.getClass().getName());
		return true;
	}
	@InjectRedis
	private RedisComponent redisComponent(){return null;}
}
